﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace Ross.OA.Client.Dto
{
    public class ReceivePODto
    {
        public string order_code { get; set; }        
        /// <summary>
        /// 采购总数
        /// </summary>
        [JsonIgnore]
        public decimal item_num_sum { get; set; }
        [JsonIgnore]
        public string delivery_date { get; set; }
        public List<ReceiveDetail> data { get; set; }
    }

    public class ReceiveDetail
    {
        [JsonIgnore]
        public bool IsCheck { get; set; }
        public string order_line { get; set; }
        [JsonIgnore]
        public string fits_code { get; set; }
        [JsonIgnore]
        public string fits_name { get; set; }
        /// <summary>
        /// 采购数量
        /// </summary>
        [JsonIgnore]
        public float item_num { get; set; }
        [JsonIgnore]
        public string HaSet { get; set; }
        public Stock[] stock { get; set; }
        public Schedule[] schedule { get; set; }
        public Quantity_Rate_PO[] quantity_rate { get; set; }

    }


    public class Schedule
    {
        /// <summary>
        /// 排产单号
        /// </summary>
        public string schedule_code { get; set; }
        /// <summary>
        /// 排产数量
        /// </summary>
        public int fits_schedule { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public string schedule_date { get; set; }
    }

    public class Quantity_Rate_PO
    {
        public string quantity_date { get; set; }
        public int fits_quantity { get; set; }
        public int fits_rate { get; set; }
    }

}
